package exo1;

/**
 * Created with IntelliJ IDEA.
 * User: naberrad
 * Date: 04/10/13
 * Time: 17:34
 * To change this template use File | Settings | File Templates.
 */
public abstract class Shape3D extends Shape implements Translatable3D {

    private Point3D refPoint;
    public abstract double volume();

    public void translate(double x,double y, double z)
    {
        refPoint.setX(refPoint.getX()+x);
        refPoint.setY(refPoint.getY()+y);
        refPoint.setZ(refPoint.getZ()+z);
    }

    @Override
    public Point3D getRefPoint() {
        return refPoint;
    }
}
